<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 800px;
            height: 200px;
            border: 1px solid #000;
        }
        img{
            width: 200px;
            transition:all 5s;
        }
        .box:hover img{
            transform: translate(600px) rotate(360deg);
            
            /* 先旋转后移动，旋转会改变坐标轴向，导致移动方向改变 */
            /* transform:rotate(360deg) translate(600px) ; */
            
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="./images/tyre.png" alt="">
    </div>

</body>
</html>